package com.jianqiao.delivery.pay.domain.initr2p;

import lombok.Data;

import java.util.List;

/**
 * author: cyx
 * create: 2024/11/26 14:43
 **/
@Data
public class RequestReasonEntity {

    private List<ReferencesEntity> references;

    private String paymentPurpose;

    public RequestReasonEntity(List<ReferencesEntity> references, String paymentPurpose) {
        this.references = references;
        this.paymentPurpose = paymentPurpose;
    }

    public static RequestReasonEntityBuild builder() {
        return new RequestReasonEntityBuild();
    }

    public static class RequestReasonEntityBuild {
        private List<ReferencesEntity> references;

        private String paymentPurpose;

        RequestReasonEntityBuild() {

        }

        public RequestReasonEntityBuild references(final List<ReferencesEntity> references) {
            this.references = references;
            return this;
        }

        public RequestReasonEntityBuild paymentPurpose(final String paymentPurpose) {
            this.paymentPurpose = paymentPurpose;
            return this;
        }

        public RequestReasonEntity build() {
            return new RequestReasonEntity(this.references ,
                    this.paymentPurpose);
        }
    }
}
